package com.ruoyi.project.fit.service.impl;

import com.ruoyi.project.fit.domain.Cost;
import com.ruoyi.project.fit.mapper.CostMapper;
import com.ruoyi.project.fit.service.CostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CostServiceImpl implements CostService {


    @Autowired
    private CostMapper costMapper;

    @Override
    public int deleteCostByIds(Long[] costIds) {

        return costMapper.deleteCostByIds(costIds);
    }


    @Override
    public int updateCost(Cost cost) {
        return costMapper.updateCost(cost);
    }

    @Override
    public int insertCost(Cost cost) {
        return costMapper.insertCost(cost);
    }

    @Override
    public Cost selectCostById(Long costId) {
        return costMapper.selectCostById(costId);
    }

    @Override
    public List<Cost> selectCostList(Cost cost) {
        return costMapper.selectCostList(cost);
    }
}
